home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Electric Reading Land
/
Electric Reading Land.iso
/
!.bat
next >
Wrap
DOS Batch File
|
1995-04-28
|
6KB
|
286 lines
@ECHO OFF
CLS
REM Terry E. Mercer may be reached at:
REM 4184 Hilsinger Road, Phoenix, OR 97535
REM 1-503-535-4194 Voice or 1-503-535-8151 Fax/Modem
REM
REM Micromedia Publishers, Inc. may be reached at:
REM 505 NE 7th, Grants Pass, OR 97526
REM 1-503-474-1111 or 1-503-471-4133 (both Voice) or
REM 1-503-474-2486 or 1-503-471-8836 (both Fax)
REM
REM
ECHO.
ECHO.
ECHO.
ECHO This Program is to assist in the Installation of programs
ECHO found on this CD, using the MMPI & PBG CD Rom Launcher
ECHO ══════════════════════════════════════════
ECHO WRITTEN BY TERRY E. MERCER c 15 April 1995
ECHO THIS BATCH PROGRAM IS COPYRIGHT PROTECTED, AND MAY BE USED
ECHO ONLY AS SPECIFIED BY Terry Mercer or MicroMedia Publishers, Inc.
ECHO.
ECHO.
ECHO NOTE: This program can also Un-Install (Delete and Remove)
ECHO everything it installs! It has done so safely and
ECHO perfectly on all of our test systems running DOS 6.xx!
ECHO.
PAUSE
cls
IF !%1==! GOTO NOCHOICE
IF EXIST \%1\INSTALL\INSTALL.EXE GOTO THEIR1
IF EXIST \%1\INSTALL\INSTALL.COM GOTO THEIR2
GOTO BEGIN
:THEIR1
CALL \%1\INSTALL\INSTALL.EXE
GOTO RUN
:THEIR2
CALL \%1\INSTALL\INSTALL.COM
GOTO RUN
:WRONGDOS
ECHO.
ECHO.
ECHO This Program requires DOS 6.xx or better to run properly.
ECHO ══════════════════════════════════════════
ECHO.
ECHO If you see this message, either you do NOT have MicroSoft
ECHO DOS v6.xx or the CHOICE command has been deleted. Either
ECHO copy the Choice command back in your DOS directory, or
ECHO consult your DOS manual to manually copy the programs to
ECHO their own directories.
ECHO.
ECHO We will make one last attempt to install the programs
ECHO properly... the program you selected will be placed in
ECHO a directory named MMPI in the C drive ("C:\MMPI>").
ECHO.
PAUSE
GOTO NOCHOICE
:NOCHOICE
IF NOT Exist C:\DOS\XCOPY.EXE GOTO NOTHING
IF NOT EXIST !.BAT GOTO NOCD
cd ERL
XCOPY *.* C:\MMPI\*.* /V
ECHO.
ECHO.
ECHO Remember, only files ending in EXE, COM, and BAT can start
ECHO programs. Many programs will require running SETUP, if such
ECHO a file (program) exists.
ECHO.
ECHO.
PAUSE
GOTO RUN1
:NOCD
ECHO.
ECHO.
ECHO You must start this program directly from the CD Rom Drive,
ECHO from DOS... with your CD as the default drive. Example "D:\>,"
ECHO where "D" is the letter designating your CD Rom drive.
ECHO.
ECHO ...Please try again...
ECHO.
GOTO END
:NOTHING
ECHO.
ECHO.
ECHO The program was not able to correctly access the necessary
ECHO information to complete the installation to your hard disk.
ECHO.
ECHO The version of DOS you have on your system is either too
ECHO old or incomplete. Consult your DOS manual to manually copy
ECHO the programs to their own directories. We can not guarantee
ECHO that the programs will work correctly at this point.
ECHO.
ECHO.
GOTO END
:BEGIN
ECHO.
ECHO.
ECHO Please press the letter corresponding to your hard drive
ECHO (C, D, E, F, and G are valid drive choices)
ECHO.
ECHO.
CHOICE /c:cdefg /n
if errorlevel 5 goto DRIVE5
if errorlevel 4 goto DRIVE4
if errorlevel 3 goto DRIVE3
if errorlevel 2 goto DRIVE2
if errorlevel 1 goto DRIVE1
:DRIVE1
md c:\%1
cd %1
xcopy *.* /V c:\%1
cd c:\%1
c:
GOTO RUN
:DRIVE2
md d:\%1
cd %1
xcopy *.* /v d:\%1
cd d:\%1
d:
GOTO RUN
:DRIVE3
md e:\%1
cd %1
xcopy *.* /v e:\%1
cd e:\%1
e:
GOTO RUN
:DRIVE4
md f:\%1
cd %1
xcopy *.* /v f:\%1
cd f:\%1
f:
GOTO RUN
:DRIVE5
md g:\%1
cd %1
xcopy *.* /v g:\%1
cd g:\%1
g:
GOTO RUN
:RUN
ECHO.
ECHO.
ECHO Do you want to Run the program from your hard drive NOW?
ECHO.
CHOICE /c:yn /n /t:Y,10
IF ERRORLEVEL 2 GOTO DELET
IF ERRORLEVEL 1 GOTO RUNIT
:RUNIT
IF !%1==! GOTO RUN1
GOTO RUN2
:RUN1
if not exist mmpi.bat goto Sorry
C:
CD\MMPI
CALL C:\MMPI\mmpi.bat
echo.
echo.
pause
GOTO RUNOVER
:RUN2
cd %1
CALL %1
echo.
echo.
pause
GOTO RUNOVER
:RUNOVER
echo.
echo.
echo You may need to run the Setup program (if one exists) before you
echo can begin the game. Just enter the directory c:\%1 then type
echo %1 and press ENTER. (Where C: is your hard drive designation).
echo.
echo.
echo.
echo.
pause
goto delet
:DELET
IF !%1==! GOTO SORRY
GOTO UNINSTALL
:UNINSTALL
IF NOT EXIST C:\DOS\CHOICE.COM GOTO DELET2
ECHO.
ECHO.
ECHO Are you sure you want to Delete this Program?
ECHO.
CHOICE /c:yn /n /t:Y,60
IF ERRORLEVEL 2 GOTO END
IF ERRORLEVEL 1 GOTO DELET3
:DELET2
ECHO.
ECHO.
ECHO Do you want to Delete this Program from your hard disk?
ECHO.
ECHO If you DO then press the enter key... if not, hold down
ECHO the Control (CTRL) key and press the letter C then Y(es).
ECHO.
ECHO.
PAUSE
GOTO DELET3
:DELET3
IF EXIST C:\ERL\ERL.EXE GOTO HARDC
IF EXIST D:\ERL\ERL.EXE GOTO HARDD
IF EXIST E:\ERL\ERL.EXE GOTO HARDE
IF EXIST F:\ERL\ERL.EXE GOTO HARDF
IF EXIST G:\ERL\ERL.EXE GOTO HARDG
GOTO SORRY
:HARDC
IF NOT EXIST !.BAT GOTO SORRY
C:
CD\ERL
GOTO NEXT
:HARDD
IF NOT EXIST !.BAT GOTO SORRY
D:
CD\ERL
GOTO NEXT
:HARDE
IF NOT EXIST !.BAT GOTO SORRY
E:
CD\ERL
GOTO NEXT
:HARDF
IF NOT EXIST !.BAT GOTO SORRY
F:
CD\ERL
GOTO NEXT
:HARDG
IF NOT EXIST !.BAT GOTO SORRY
G:
CD\ERL
GOTO NEXT
:NEXT
ECHO Please wait... this may take a few mintues, depending on
ECHO the speed of your computer and hard disk drive.
ECHO.
ATTRIB -R *.* /S
ECHO. Y | DEL *.*
CD\
RD ERL
GOTO END
:SORRY
echo.
ECHO Sorry, but this program is not working correctly on your computer.
ECHO Or has been installed to a directory with a name other than ERL.
ECHO See your DOS manual or consult a smart friend to Un-Install this.
echo.
echo.
echo.
pause
goto end
:end